<template>
  <div>
    <!--主要用于处理socket连接及引入问题-->
    <router-view></router-view>
  </div>
</template>
<style lang="scss" scoped>

</style>
<script>
  import {mapState, mapGetters, mapActions} from 'vuex';
  import io from 'socket.io-client';
  import Storage from 'util/lib/storage';
  import { talkUd } from 'store/modules/types';
  export default{
    name: 'Loan',
    data(){
      return{

      }
    },
    components:{

    },
    computed:{
      ...mapGetters({
        "talkDetail": "c_talkDetail"
      })
    },
    methods:{
      ...mapActions({
        "getSocket": talkUd.A.GET_SOCKET
      })
    },
    created(){
      if(!this.talkDetail.socket) {
        this.getSocket();
      }
    },
    mounted(){

    }
  }
</script>
